#pragma once

class MAPSingleGraph
{
//	MAP_SingleGraph des;
	Rect rect;
//	const MAPCalculator *calc;
	BMPBuffer *buf;
public:
//	MAPSingleGraph(const MAPCalculator *c, const MAP_SingleGraph descriptor):des(descriptor),calc(c),buf(0){};
	~MAPSingleGraph(void){SAFE_DELETE(buf);}
	void SetGraphRect(int x, int y, int w, int h){SetGraphRect(Rect(x,y,w,h));}
	void SetGraphRect(Rect &r){
		rect = r; 
		SAFE_DELETE(buf);
	}
	void Draw(Graphics *g);
	void Draw2File(LPCTSTR filename);
};
